package com.java1412.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author java1412
 * @since 2025-05-13 15:24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Goods implements Serializable {
    private Integer id;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 商品价格(分)
     */
    private Integer price;
    /**
     * 商品封⾯图
     */
    private String goodsImg;
    /**
     * 概述
     */
    private String summary;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
